<div class="project_guideline">
	<ul class="project-guideline-block">
    	<?php if(Configure::read('Project.is_enable_idea')) :?>
		   <li class="home"><span><?php echo __l('Add Idea'); ?> </span>
		   <?php else: ?>
		   <li class="home"><span><?php echo __l('Add Project'); ?> </span>
		   <?php endif; ?>
			<ul>
				<?php if (Configure::read('Project.listing_fee')) { 
						$fee =__l('Listing Fee ');
					     if (Configure::read('Project.project_listing_fee_type') == 'amount') {
							$fee .= Configure::read('site.currency').$this->Html->cCurrency(Configure::read('Project.listing_fee'),false);
						} else {
							$fee .= Configure::read('Project.listing_fee').'% '.__l('of needed amount');
						}	
					
				?>
			<?php foreach ($paymentGateways as $paymentGateway):
                   if($paymentGateway['PaymentGateway']['id'] == ConstPaymentGateways::Wallet):
                    if($paymentGateway['PaymentGateway']['is_active'] == '1')
                     {
                      $wallet_enabled = $paymentGateway['PaymentGateway']['is_active'];
                     }
                    endif;
                    if($paymentGateway['PaymentGateway']['id'] == ConstPaymentGateways::PayPal):
                     if($paymentGateway['PaymentGateway']['is_active'] == '1')
                      {
                       $paypal_enabled = $paymentGateway['PaymentGateway']['is_active'];
                      }
                    endif;
                 endforeach;?>
				<?php if(!empty($wallet_enabled) && !empty($paypal_enabled)){ 
                        $paymentGateway_name = ConstPaymentGatewaysName::PayPal.__l('/wallet');
				      }  
				      else if(empty($wallet_enabled) && !empty($paypal_enabled)){
                        $paymentGateway_name = ConstPaymentGatewaysName::PayPal;
					  }
				      else if(!empty($wallet_enabled) && empty($paypal_enabled)){
                        $paymentGateway_name = __l('wallet');
			          }?>
				<li> <span><?php echo __l('Pay Through ').$paymentGateway_name.' ('.$fee.')'; ?> </span></li>
				<?php } ?>
				<?php if (!Configure::read('Project.is_auto_approve')) { ?>
				<li> <span><?php echo __l('Pending (Admin will approve your project)'); ?> </span></li>
				<?php } ?>
				<?php if (Configure::read('Project.is_enable_idea')) { ?>
				<li> <span><?php echo __l('Open for voting (Top voted ideas will be choosen for funding by admin)'); ?> </span></li>
				<?php } ?>
				<li> <span><?php echo __l('Open for Funding'); ?></span>				
						

						<?php if(Configure::read('Project.is_allow_owner_project_cancel')){ ?>
						<ul>						
							<li> <span><?php echo __l('You have option to cancel your project in dashboard'); ?> </span></li>							
						</ul>
						<?php } ?>
						<ul class="<?php if(Configure::read('Project.is_allow_owner_project_cancel')){ ?> last <?php } else {  ?> first <?php } ?> ">
						<li> <span><?php echo __l('Expired (Your project did not reach needed amount.)'); ?> </span></li>
						</ul>

					
				</li>
				
			
			<?php 
				$class='branch';
				if (Configure::read('Project.is_enable_threshold_limit')): ?>
					<li class="<?php echo $class?> last-list"> <span><?php echo __l('Reserve amount reached'); ?></span> </li>
				<?php 
					$class='';	
				endif; 

					if(Configure::read('Project.is_allow_user_to_set_overfunding')){
						
						?>
							<li  class="<?php echo $class?> last-list"> <span><?php  echo __l('Goal Reached');  ?></span>	</li>
							<li> <span><?php echo __l('Allow overfunding (You can set user for fund to above needed amount)'); ?> </span></li>
						<?php
						$class='';	
						} ?>
				<li class="<?php echo $class?>"> <span><?php echo __l('Closed'); ?> </span></li>	

			</ul>
		</li>
	</ul>
</div>
<div class='reward-info grid_23'>
<?php echo $this->requestAction(array('controller' => 'pages', 'action' => 'view', 'project_guidelines'), array('return')); ?>	
</div>